import request from '@/utils/request'

export function putcache(query) {
  return request({
    url: '/api/boot/encache/putEncache',
    method: 'post',
    data: query
  })
}

export function getcache(data) {
  return request({
    url: '/api/boot/encache/getEncache',
    method: 'post',
    data: data
  })
}

export function getCacheObj(query) {
  return request({
    url: '/api/boot/encache/getCacheObj',
    method: 'post',
    data: query
  })
}

export function evitCacheObj(data) {
  return request({
    url: '/api/boot/encache/evitCacheObj',
    method: 'post',
    data: data
  })
}

export function sendMsg(query) {
  return request({
    url: '/api/boot/amqp/sendMsg',
    method: 'post',
    data: query
  })
}

export function sendSimpleMail(query) {
  return request({
    url: '/api/boot/mail/sendSimpleMail',
    method: 'post',
    data: query
  })
}

export function sendAttachmentsMail(query) {
  return request({
    url: '/api/boot/mail/sendAttachmentsMail',
    method: 'post',
    data: query
  })
}

export function sendTemplateMail(query) {
  return request({
    url: '/api/boot/mail/sendTemplateMail',
    method: 'post',
    data: query
  })
}

